package storeecom;


import Sessions.EcomAdminRemote;
import javax.naming.Context;
import shellCommands.ShellAdmin;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author SOGOBA
 */
public class ClientAdmin {
   

    public static void main(String[] args)// throws EcomAdminException
    {
        try {

            System.out.println("Begining Client...");


            ShellAdmin shellAdmin = new ShellAdmin();

            shellAdmin.run();
            //parseArgs(args);

            // get JNDI initial context
           /* Context initialContext = null;
            try {
            initialContext = new InitialContext();
            } catch (Exception e) {
            System.err.println("Cannot get initial context for JNDI: " + e);
            System.exit(2);
            }

            // We want to start transactions from client: get UserTransaction
            UserTransaction utx = null;
            try {
            utx = (UserTransaction) initialContext.lookup("UserTransaction");
            } catch (NamingException e) {
            System.err.println("Cannot lookup UserTransaction: " + e);
            System.exit(2);
            }*/

            //ShellContext context = getContext();



            //context.getContext();

        } catch (Exception e) {
            System.err.println("Client get an exception " + e);
            System.exit(2);
        }
    }
    /**
     * Parses an argument list for an acountId
     *
     * @param args[]            String array of arguments
     */
    /*static void parseArgs(String args[]) {
    System.out.println("ParseArgs not yet implemented");
    }*/
}
